package logmanager.view_properties;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

//classe d'action d'enregistrement des propretes
public class ActionApply implements MouseListener{
	PropertiesView pv;
	boolean ok;

	public ActionApply(PropertiesView pv, boolean ok) {
		super();
		this.pv = pv;
		this.ok = ok;
	}

	@SuppressWarnings("deprecation")
	public void mouseClicked(MouseEvent arg0) {
		pv.saveProperties();
		if(ok)
			pv.hide();
	}

	public void mouseEntered(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	public void mouseExited(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	public void mousePressed(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	public void mouseReleased(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

}
